<!DOCTYPE html>
<html>
<head>
	<title>阳新帝豪装饰后台---用户详情</title>
	{include file="public/head" /}
	{load href="/static/js/publicAdd.js" /}
</head>
<body class="childrenBody">
<form class="layui-form" action="" lay-filter="example" method="post"  enctype="multipart/form-data">
	<div class="layui-form-item">
		<label class="layui-form-label">账号</label>
		<div class="layui-input-block">
			<input type="text" name="account" value="{$info.account}"  lay-verify="title" autocomplete="off" placeholder="请输入账号" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">密码</label>
		<div class="layui-input-block">
			<input type="password" name="password" value=""  lay-verify="title" autocomplete="off" placeholder="请输入密码" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">手机号</label>
		<div class="layui-input-block">
			<input type="text" name="mobilephone" value="{$info.mobilephone}"  lay-verify="title" autocomplete="off" placeholder="请输入手机号" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">微信openId</label>
		<div class="layui-input-block">
			<input type="text" name="weixin" value="{$info.weixin}"  lay-verify="title" autocomplete="off" placeholder="请输入微信openId" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">昵称</label>
		<div class="layui-input-block">
			<input type="text" name="nickname" value="{$info.nickName}"  lay-verify="title" autocomplete="off" placeholder="请输入姓名" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">生日</label>
		<div class="layui-input-block"> <!-- 注意：这一层元素并不是必须的 -->
			<input type="text" name= 'birthday' class="layui-input" id="test1" value="{:empty($info.birthday)?'':date('Y-m-d',$info.birthday)}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">性别</label>
		<div class="layui-input-block">
			<input type="radio" name="sex" value="1" {if condition="$info.sex == 1 "}checked {/if} title="男">
			<input type="radio" name="sex" value="2" title="女" {if condition="$info.sex == 2 "}checked {/if} >
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">角色</label>
		<div class="layui-input-block">
			<select name="role_id" lay-verify="required">
				<option value="" >请选择</option>
                {volist name="allRole" id="vo"}
				<option value="{$key}" {if condition="$info['roleId'] == $key "} selected {/if}  >{$vo}</option>
                {/volist}
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">权限菜单</label>
		<div class="layui-input-block">
			{volist name="authMenu" id="vo"}
				<input type="checkbox" name="auth[]" title="{$vo.name}" <?php if(isset($info['auth'][$vo['id']])){ echo 'checked';} ?>  value="{$vo.id}" >
			{/volist}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">账号管理</label>
		<div class="layui-input-block">
			<input type="radio" name="account_status" value="1" {if condition="$info.account_status == 1 "}checked {/if} title="启用">
			<input type="radio" name="account_status" value="0" title="禁用">
		</div>
	</div>
	<input type="hidden" value="{$info.id}" name="id">
	<input type="hidden" value="{$addUrl}" id="addUrl">
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="submit" >立即提交</button>
		</div>
	</div>
</form>
</body>
</html>